<?php
defined('BASEPATH') OR exit('No direct script access allowed');
?><!DOCTYPE html><html lang="en">
	<head>
		<!--加载header文件-->
		<?php
		include_once 'public/views/header.php';
		?>
		<?php 
			include_once 'public/home/html/qrcode.php';
			include_once 'public/home/html/alert.php';
		?>
		<?php include_once 'public/home/html/img_big.php'
		?>
		<link rel="stylesheet" href="public/css/list.css" />
		<link rel="stylesheet" href="public/xr/xrDatatable.css" />
		<script src="public/xr/xrDatatable.js"></script>
		<script src="public/js/list.js"></script>
		<script src="cust/js/auditList.js?v=20240117"></script>
		<script src="public/home/js/function.js"></script>
		<style>
			.cart-c{
				width:400px;
				position: fixed;
				top:5px;
				right:-400px;
				background-color: #eee;
				box-shadow: -4px 4px 5px #888888;
				padding:0px!important;
				/*border-top:1px solid #999;*/
				z-index:999;
			}
			.cart-c-title{
				font-size: 14px; font-weight: bold; color:#666; height:50px; line-height: 50px; border-bottom:1px dashed #999;
				background-color: white;
			}
			.cart-c-title-icon{
				font-weight: bold;
				font-size:20px;
				width:30px;
				height:30px;
				border-radius: 3px;
				line-height: 30px;
				text-align: center;
				cursor: pointer;
			}
			.cart-c-title-icon:hover{
				background-color: #ddd;
			}
			.cart-c-box{
				overflow-y: scroll;
				overflow-x: hidden;
				padding-top:10px;
				padding-right:0px!important;
				padding-bottom:10px;
				-webkit-user-select: none;
				-moz-user-select: none;
				-ms-user-select: none;
				user-select: none;
			}
			.cart-c-box{
				background-color: white;
				padding:0px!important;
			}
			.cart-box-c::-webkit-scrollbar{
				overflow: hidden;
				display: none;
			}
			.cart-c-button{
				height:50px;
				line-height: 50px;
				background-color: white;
			}
			.show-cart-c{
				height:60px;
				width:40px;
				font-size: 25px;
				line-height: 60px;
				text-align:center;
				/*background-color: #fff;*/
				box-shadow: -4px 4px 5px #888888;
				position: absolute;
				right: 0px;
				border-radius: 5px 0px 0px 5px;
				background-color: rgba(255,255,255,0.2);
				cursor: pointer;
			}
			.show-cart-c:hover{
				background-color: rgba(255,255,255,1);
			}

			.add-button{
				background-color:#EC6C62; border-color:#EC6C62; height:25px; line-height: 25px; color:white; width:50px; border-radius:4px; text-align: center; cursor: pointer;
				font-size:12px;
				margin-top:7px;
				margin-left:0px;
				text-indent: 0px!important;
			}
		</style>
	</head>
	<body>
		<div class="page-container container">
			<div class="searchForm">
			    <div class="searchForm-title"><i class="icon-table searchForm-title-icon"></i>数据表格<i class="icon-double-angle-up searchFormTitleIcon"></i></div>
			    <div class="searchForm-main">
					<form id="searchForm">
							<input type="text" name='param' id="param" placeholder="成果名称"/>	
							<input type="text" name='commit' id="commit" placeholder="提交人"/>	
							<select name="type" id="type">
								<option value="-1">成果类型</option>
								<?php foreach ((new ResultsType)->getAll() as $k => $v) : ?>
									<option value="<?=$v[XPHEnum::Value]?>"><?=$v[XPHEnum::Caption]?></option>
								<?php endforeach ?>
							</select>
							<select name="audit_type" id="audit_type">
								<option value="-1">提交审核类型</option>
								<?php foreach ((new AuditType)->getAll() as $k => $v) : ?>
									<option value="<?=$v[XPHEnum::Value]?>"><?=$v[XPHEnum::Caption]?></option>
								<?php endforeach ?>
							</select>
							<select name="state" id="state">
								<option value="-1">审核状态</option>
								<?php foreach ((new AuditState)->getAll() as $k => $v) : ?>
									<option value="<?=$v[XPHEnum::Value]?>"><?=$v[XPHEnum::Caption]?></option>
								<?php endforeach ?>
							</select>					
					</form>
						
				</div>
				
			</div>	
			<!-- <div class="operationRow">
				<button class="pageItemButton" style="background-color: #449E2F;" onclick="exportData();"><i class="icon-signout"></i>导出为excel</button>	
			</div>	 -->
			<div class="listcontent">
				<div class='xrTableRow'>
					<table id="table" class="xrTable">
						<thead>
							<tr>
								<th name="_xrno"></th>
								<th name="_oper" style="width: 120px;">操作</th>
								<th name="_only_code" style="width: 155px;"> 科研成果业绩编码</th>
								<th name="_type_char" > 成果类型 </th>
								<th name="_audit_type_char" > 审核类型 </th>
								<th name="_data_name1"  style="width: 300px;"> 成果名称 </th>
								<th name="_node_char" > 审核节点 </th>
								<th name="_state_char" > 状态 </th>
								<th name="_created_char" > 提交审核时间 </th>
								<th name="_admin_name" > 提交人 </th>
								<th name="_operator_name" > 审核人 </th>
								<th name="_audit_time_char" > 审核时间 </th>
							</tr>
						</thead>
					</table>
				</div>
			</div>
		</div>


	</body>
	<script>
		$(function(){
			$("#searchForm").append('   <button class="pageItemButton" style="background-color: #449E2F;" onclick="exportData();"><i class="icon-signout"></i>导出为excel</button>');
		})
		$("body").keydown(function() {
             if (event.keyCode == "13") {//keyCode=13是回车键
                 $('.searchButton').click();
             }
         });
		$("#type").change(function(){
			$('.searchButton').click();
		});
		$("#state").change(function(){
			$('.searchButton').click();
		});
		$("#audit_type").change(function(){
			$('.searchButton').click();
		});
		
	</script>
</html>